package com.huatai.bi.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @program: ganghua
 * @description: 客户端连接实体
 * @author: songxiude
 * @create: 2024-09-11 11:45
 **/
@Data
@TableName(value ="mq_client_number")
@ApiModel("mqtt客户端连接数")
public class MqClientNumberEntity {

	/**
	 * 主键
	 */
	@TableId(value = "id",type = IdType.ASSIGN_ID)
	@ApiModelProperty("主键")
	private Long id;

	@ApiModelProperty("客户端连接ip端口")
	private String ipPort;

	@ApiModelProperty("客户端连接数")
	private Integer clientNumber;

	@ApiModelProperty("收否存活")
	private Integer isActive;
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间",hidden = true)
	@TableField(value = "create_time",fill = FieldFill.INSERT)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date createTime;
}
